import React, { Component } from 'react'

export default class News extends Component {

    componentDidMount =  () => {
        this.timer = setTimeout(() => {
            this.props.history.replace('/home/message')
        }, 2000)
    }

    componentWillUnmount = () => {
        clearTimeout(this.timer)
    }

    render() {
        return (
            <div>
                News
            </div>
        )
    }
}
